
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 资讯管理 <span class="c-gray en">&gt;</span> 资讯列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="" method="post">
            <a id="export" href="{:U('news/export')}">导出</a>
        <button onclick="removeIframe()" class="btn btn-primary radius">关闭选项卡</button>
        <span class="select-box inline">
		<select name="" class="select">
			<option value="0">全部分类</option>
			<option value="1">分类一</option>
			<option value="2">分类二</option>
		</select>
		</span> 日期范围：
        <input type="text" name="start" onfocus="WdatePicker({ maxDate:'#F{ $dp.$D(\'logmax\')||\'%y-%M-%d\'}' })" id="logmin" class="input-text Wdate" style="width:120px;">
        -
        <input type="text" name="end" onfocus="WdatePicker({ minDate:'#F{ $dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })" id="logmax" class="input-text Wdate" style="width:120px;">
        <input type="text" name="keywords" id="" placeholder=" 资讯名称" style="width:250px" class="input-text">
        <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜资讯</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l"><a href="javascript:;" onclick="article_dels(this)" class="btn btn-danger radius">
            <i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
            <a class="btn btn-primary radius" data-title="添加资讯"  onclick="article_add('添加资讯','{:U('news/insert')}')" href="javascript:;">
                <i class="Hui-iconfont">&#xe600;</i> 添加资讯</a>
            </span> <span class="r">共有数据：<strong>{:count($rows)}</strong> 条</span> </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="80">ID</th>
                <th>标题</th>
                <th width="80">分类</th>
                <!--<th width="80">来源</th>-->
                <th width="120">更新时间</th>
                <th width="75">浏览次数</th>
                <th width="60">发布状态</th>
                <th width="120">操作</th>
            </tr>
            </thead>
            <tbody>
                <foreach name="rows" item="v">
                    <tr class="text-c">
                        <td><input type="checkbox" value="{$v.id}" name=""></td>
                        <td>{$v.id}</td>
                        <td class="text-l"><u style="cursor:pointer" class="text-primary" onClick="article_edit('查看','article-zhang.html','10001')" title="查看">{$v.title}</u></td>

                        <td>{$v.name|default="未定义分类"}</td>
                        <!--<td>H-ui</td>-->
                        <td>{$v.crdate|date="Y-m-d H:i:s",###}</td>
                        <td>{$v.author}</td>

                        <td class="td-status">
                            <if condition="$v['hidden'] eq 0">
                                <span class="label label-success radius">已发布</span>
                                <else/>
                                    <span class="label label-success radius">下线</span>
                            </if>
                        </td>

                        <td class="f-14 td-manage">
                            <a style="text-decoration:none" onClick="article_stop(this,'10001')" href="javascript:;" title="下架">
                            <i class="Hui-iconfont">&#xe6de;</i></a> <a style="text-decoration:none" class="ml-5" onClick="article_edit('资讯编辑','{:U('news/update',array('id'=>$v['id']))}')" href="javascript:;" title="编辑">
                            <i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="article_del(this,{$v.id})" href="javascript:;" title="删除">
                            <i class="Hui-iconfont">&#xe6e2;</i></a>
                        </td>
                    </tr>
                </foreach>

            </tbody>
        </table>
    </div>
</div>
